package com.toy.core.security.access.voter;

import com.toy.core.security.Authentication;
import com.toy.core.security.chain.FilterInvocation;

public interface AccessDecisionVoter {
	 //~ Static fields/initializers =====================================================================================

    /**
     * 赞同
     */
    int ACCESS_GRANTED = 1;
    /**
     * 弃权
     */
    int ACCESS_ABSTAIN = 0;
    /**
     * 反对
     */
    int ACCESS_DENIED = -1;

    //~ Methods ========================================================================================================
    int vote(Authentication authentication,
			FilterInvocation filterInvocation);
}
